﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AttributesExcercise
{
    [AttributeUsage(AttributeTargets.Method,
    AllowMultiple = true, Inherited = false)]
    
    class VersionAttribute : System.Attribute
    {
        private string version;
        private string comment;

        public string Version
        {
            get
            {
                return version;
            }
        }

        public string Comment
        {
            get
            {
                return comment;
            }
        }

        public VersionAttribute(string version, string comment)
        {
            this.version = version;
            this.comment = comment;
        }

        public override string ToString()
        {
            return (string.Format("Version: {0} \nComment: {1}", version, comment));
        }
    }
}
